/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package lexico;

import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author Pedrom
 */
public class symboltable {
    private Map<String, String> hash = new HashMap<String, String> () ;

    public symboltable() {
        hash.put("algoritmo", "ReservedWord");
        hash.put("variaveis", "ReservedWord");
        hash.put("constantes", "ReservedWord");
        hash.put("registro", "ReservedWord");
        hash.put("funcao", "ReservedWord");
        hash.put("retorno", "ReservedWord");
        hash.put("vazio", "ReservedWord");
        hash.put("se", "ReservedWord");
        hash.put("senao", "ReservedWord");
        hash.put("enquanto", "ReservedWord");
        hash.put("para", "ReservedWord");
        hash.put("leia", "ReservedWord");
        hash.put("escreva", "ReservedWord");
        hash.put("inteiro", "ReservedWord");
        hash.put("real", "ReservedWord");
        hash.put("booleano", "ReservedWord");
        hash.put("char", "ReservedWord");
        hash.put("cadeia", "ReservedWord");
        hash.put("verdadeiro", "ReservedWord");
        hash.put("falso", "ReservedWord");        
    }
    
    public boolean containsKey(String key){
        return hash.containsKey(key);
    }
    
}
